<!DOCTYPE html>
<html lang="zh">
<head>
    <title>{{ place }}的设备</title>
    <meta charset="utf-8">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
    <table style="text-align: center; margin: 0 auto;">
        {% load qr_tags %}
        {% for device in devices %}
            {% if forloop.counter0|divisibleby:"16" %}
            <tr><td colspan="4"><h3>{{ place }}的设备</h3></td></tr>
            {% endif %}
            {% if forloop.counter0|divisibleby:"4" %}<tr>{% endif %}
                <td style="border: solid black 1px; padding: 2px">
                    {% qr_from_text device.unqrcode "m" %}<br><hr>
                    {{ device.num }}<br>
                    {{ device.name }}<br>
                </td>
            {% if forloop.counter|divisibleby:"4" %}</tr>{% endif %}
        {% endfor %}
    </table>
</body>
</html>